#!/usr/bin/env python3
import re

ip_arr = []
pt = re.compile('\d+(\.\d+){3}')

f = open('secure')
for i in f:
    ips = pt.findall(i)
    if ips:
        ip_arr.extend(ips)

print(ip_arr)
f.close()
